package com.lemon.core.common.lang.template;

/**
 * @author hdzhang
 * @ClassName VmGrammarTemplate
 * @desc vm 语法
 * @Date 2018/8/27 18:44
 * @Version 1.0
 **/
public enum VmGrammarTemplate {

    VM_TMPL_FOR("#foreach", "#end", "for循环"),

    VM_TMPL_IF("#if", "#end", "if条件")
    ;

    /**
     * 语法开始语句
     */
    private String startGrammar;

    /**
     * 语法结束语句
     */
    private String endGrammar;

    /**
     * 描述
     */
    private String desc;

    VmGrammarTemplate(String startGrammar, String endGrammar, String desc) {
        this.startGrammar = startGrammar;
        this.endGrammar = endGrammar;
        this.desc = desc;
    }

    public String getStartGrammar() {
        return startGrammar;
    }

    public String getEndGrammar() {
        return endGrammar;
    }

    public String getDesc() {
        return desc;
    }
}
